<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
    <div v-if="score>=90">优秀</div>
    <div v-if="score>=60&&score<90">良</div>
    <div v-if="score<60">差</div>
    <div v-show="flag">v-show测试</div>
    <button @click="handle">切换</button>
</div>
<script type="text/javascript" src="js/vue.min.js"></script>
<script type="text/javascript">
    var vm = new Vue({
        el: "#app",
        data: {
            score: 66,
            flag: false
        },
        methods: {
            handle: function () {
                this.flag = !this.flag
            }
        }
    })
</script>
</body>
</html>